﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.DNL.CSharp.DesignPattern.MementoPattern.RollBack
{
    /// <summary>
    /// 始发者
    /// </summary>
    public class Originator
    {
        private Memento _memento;

        public string State { get; set; }


        public Memento Memento
        {
            get
            {
                _memento = new Memento(State);
                return _memento;
            }
            set => _memento = value;
        }
    }
}
